package com.demo.aop.core;

import lombok.Data;

import java.lang.reflect.Method;

/**
* @redeme:拦截器抽象方法
* @author  tjh
* @date 2019/4/29 17:54
*/
@Data
public abstract class FyInterceptor {
    private Class<?> cls;
    private Method method;

    public FyInterceptor(Class<?> cls, Method method) {
        this.cls = cls;
        this.method = method;
    }

    public abstract boolean before(Object... objs);
    public abstract Object after(Object result);
    public abstract void dealException(Throwable throwable);
}
